<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Cheetah Software: Checkerboard Class Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Cheetah Software
   &#160;<span id="projectnumber">1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="../../annotated.html"><span>Classes</span></a></li>
      <li><a href="../../files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="../../annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="../../classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="../../inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="../../functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('df/d89/class_checkerboard.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="../../d1/d89/class_checkerboard-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Checkerboard Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="../../dd/ddf/_checkerboard_8h_source.html">Checkerboard.h</a>&gt;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="../../closed.png" alt="+"/> Collaboration diagram for Checkerboard:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../d0/dfb/class_checkerboard__coll__graph.png" border="0" usemap="#_checkerboard_coll__map" alt="Collaboration graph"/></div>
<map name="_checkerboard_coll__map" id="_checkerboard_coll__map">
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ab3af837dc947b24ef2acbd9039eefb07"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d89/class_checkerboard.html#ab3af837dc947b24ef2acbd9039eefb07">Checkerboard</a> (float xSize, float ySize, size_t xSquares, size_t ySquares)</td></tr>
<tr class="separator:ab3af837dc947b24ef2acbd9039eefb07"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a19e69d5da151a709563281080c511ec8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d89/class_checkerboard.html#a19e69d5da151a709563281080c511ec8">setDarkColor</a> (const float *dark)</td></tr>
<tr class="separator:a19e69d5da151a709563281080c511ec8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf41dba79db5375bac69734a0b06ba9e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d89/class_checkerboard.html#aaf41dba79db5375bac69734a0b06ba9e">setLightColor</a> (const float *light)</td></tr>
<tr class="separator:aaf41dba79db5375bac69734a0b06ba9e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac2684bd81769c83fbf0bf2f648a35488"><td class="memItemLeft" align="right" valign="top">const float *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d89/class_checkerboard.html#ac2684bd81769c83fbf0bf2f648a35488">getSize</a> ()</td></tr>
<tr class="separator:ac2684bd81769c83fbf0bf2f648a35488"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7da009b6e556e016815920ee968efa98"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d89/class_checkerboard.html#a7da009b6e556e016815920ee968efa98">computeVertices</a> (std::vector&lt; float &gt; &amp;vertices, std::vector&lt; float &gt; &amp;normals, std::vector&lt; float &gt; &amp;colors)</td></tr>
<tr class="separator:a7da009b6e556e016815920ee968efa98"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:ae17c6a79ea4e466a1e360488cc174010"><td class="memItemLeft" align="right" valign="top">const float *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d89/class_checkerboard.html#ae17c6a79ea4e466a1e360488cc174010">_darkColor</a> = <a class="el" href="../../dc/daa/_colors_8h.html#a5455a636720a913de6ab033eae5e0746">checkerboardDark</a></td></tr>
<tr class="separator:ae17c6a79ea4e466a1e360488cc174010"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54f669fe23e7a224b7022b6f169b7d77"><td class="memItemLeft" align="right" valign="top">const float *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d89/class_checkerboard.html#a54f669fe23e7a224b7022b6f169b7d77">_lightColor</a> = <a class="el" href="../../dc/daa/_colors_8h.html#a8450fe3cef6bee0f0ca51bff464853b7">checkerboardLight</a></td></tr>
<tr class="separator:a54f669fe23e7a224b7022b6f169b7d77"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a292edf6a6a1ee402a3af1761be44b2"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d89/class_checkerboard.html#a3a292edf6a6a1ee402a3af1761be44b2">_size</a> [2]</td></tr>
<tr class="separator:a3a292edf6a6a1ee402a3af1761be44b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7823063192a67cfefb42768be85edc47"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d89/class_checkerboard.html#a7823063192a67cfefb42768be85edc47">_squares</a> [2]</td></tr>
<tr class="separator:a7823063192a67cfefb42768be85edc47"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="../../dd/ddf/_checkerboard_8h_source.html#l00015">15</a> of file <a class="el" href="../../dd/ddf/_checkerboard_8h_source.html">Checkerboard.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ab3af837dc947b24ef2acbd9039eefb07"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Checkerboard::Checkerboard </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>xSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>ySize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>xSquares</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>ySquares</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Construct a new checkerboard at the origin </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">xSize</td><td>: width, meters </td></tr>
    <tr><td class="paramname">ySize</td><td>: height, meters </td></tr>
    <tr><td class="paramname">xSquares</td><td>: number of squares along x (must be at least 1) </td></tr>
    <tr><td class="paramname">ySquares</td><td>: number of squares along y (must be at least 2) </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="../../d3/dfd/_checkerboard_8cpp_source.html#l00017">17</a> of file <a class="el" href="../../d3/dfd/_checkerboard_8cpp_source.html">Checkerboard.cpp</a>.</p>

<p>References <a class="el" href="../../dd/ddf/_checkerboard_8h_source.html#l00042">_size</a>, and <a class="el" href="../../dd/ddf/_checkerboard_8h_source.html#l00043">_squares</a>.</p>
<div class="fragment"><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;                                            {</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;  <a class="code" href="../../df/d89/class_checkerboard.html#a3a292edf6a6a1ee402a3af1761be44b2">_size</a>[0] = xSize;</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;  <a class="code" href="../../df/d89/class_checkerboard.html#a3a292edf6a6a1ee402a3af1761be44b2">_size</a>[1] = ySize;</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;  <a class="code" href="../../df/d89/class_checkerboard.html#a7823063192a67cfefb42768be85edc47">_squares</a>[0] = xSquares;</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;  <a class="code" href="../../df/d89/class_checkerboard.html#a7823063192a67cfefb42768be85edc47">_squares</a>[1] = ySquares;</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;  <span class="comment">//  computeVertices();</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;}</div><div class="ttc" id="class_checkerboard_html_a7823063192a67cfefb42768be85edc47"><div class="ttname"><a href="../../df/d89/class_checkerboard.html#a7823063192a67cfefb42768be85edc47">Checkerboard::_squares</a></div><div class="ttdeci">size_t _squares[2]</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/ddf/_checkerboard_8h_source.html#l00043">Checkerboard.h:43</a></div></div>
<div class="ttc" id="class_checkerboard_html_a3a292edf6a6a1ee402a3af1761be44b2"><div class="ttname"><a href="../../df/d89/class_checkerboard.html#a3a292edf6a6a1ee402a3af1761be44b2">Checkerboard::_size</a></div><div class="ttdeci">float _size[2]</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/ddf/_checkerboard_8h_source.html#l00042">Checkerboard.h:42</a></div></div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a7da009b6e556e016815920ee968efa98"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Checkerboard::computeVertices </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; float &gt; &amp;&#160;</td>
          <td class="paramname"><em>vertices</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; float &gt; &amp;&#160;</td>
          <td class="paramname"><em>normals</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; float &gt; &amp;&#160;</td>
          <td class="paramname"><em>colors</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Update the checkerboard vertices for the current sizees </p>

<p>Definition at line <a class="el" href="../../d3/dfd/_checkerboard_8cpp_source.html#l00029">29</a> of file <a class="el" href="../../d3/dfd/_checkerboard_8cpp_source.html">Checkerboard.cpp</a>.</p>

<p>References <a class="el" href="../../dd/ddf/_checkerboard_8h_source.html#l00040">_darkColor</a>, <a class="el" href="../../dd/ddf/_checkerboard_8h_source.html#l00041">_lightColor</a>, <a class="el" href="../../dd/ddf/_checkerboard_8h_source.html#l00042">_size</a>, and <a class="el" href="../../dd/ddf/_checkerboard_8h_source.html#l00043">_squares</a>.</p>
<div class="fragment"><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;                                                             {</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;  <span class="comment">// 3 channels, n*m squares, 2 triangles, 3 vertices per triangle</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;  <span class="keywordtype">size_t</span> dataSize = 3 * <a class="code" href="../../df/d89/class_checkerboard.html#a7823063192a67cfefb42768be85edc47">_squares</a>[0] * <a class="code" href="../../df/d89/class_checkerboard.html#a7823063192a67cfefb42768be85edc47">_squares</a>[1] * 3 * 2;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;  vertices.clear();</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;  normals.clear();</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;  colors.clear();</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;  vertices.reserve(dataSize);</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;  normals.reserve(dataSize);</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;  colors.reserve(dataSize);</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;  <span class="keyword">const</span> <span class="keywordtype">float</span> xStep = <a class="code" href="../../df/d89/class_checkerboard.html#a3a292edf6a6a1ee402a3af1761be44b2">_size</a>[0] / (float)_squares[0];</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;  <span class="keyword">const</span> <span class="keywordtype">float</span> yStep = <a class="code" href="../../df/d89/class_checkerboard.html#a3a292edf6a6a1ee402a3af1761be44b2">_size</a>[1] / (float)_squares[1];</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i &lt; _squares[0]; i++) {</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> j = 0; j &lt; _squares[1]; j++) {</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;      <span class="comment">// add normals and color</span></div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;      <span class="keyword">const</span> <span class="keywordtype">float</span>* squareColor = (i + j) % 2 ? <a class="code" href="../../df/d89/class_checkerboard.html#ae17c6a79ea4e466a1e360488cc174010">_darkColor</a> : <a class="code" href="../../df/d89/class_checkerboard.html#a54f669fe23e7a224b7022b6f169b7d77">_lightColor</a>;</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;      <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> k = 0; k &lt; 6; k++) {</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> m = 0; m &lt; 3; m++) {</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;          colors.push_back(squareColor[m]);</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;          normals.push_back(m == 2 ? 1 : 0);</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;        }</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;      }</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;      <span class="keyword">const</span> <span class="keywordtype">float</span> xStart = xStep * i;</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;      <span class="keyword">const</span> <span class="keywordtype">float</span> yStart = yStep * j;</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;      <span class="comment">// tri 1</span></div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;      vertices.push_back(xStart);</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;      vertices.push_back(yStart);</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;      vertices.push_back(0);</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;      vertices.push_back(xStart);</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;      vertices.push_back(yStart + yStep);</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;      vertices.push_back(0);</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;      vertices.push_back(xStart + xStep);</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;      vertices.push_back(yStart);</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;      vertices.push_back(0);</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;      <span class="comment">// tri 2</span></div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;      vertices.push_back(xStart);</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;      vertices.push_back(yStart + yStep);</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;      vertices.push_back(0);</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;      vertices.push_back(xStart + xStep);</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;      vertices.push_back(yStart + yStep);</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;      vertices.push_back(0);</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;      vertices.push_back(xStart + xStep);</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;      vertices.push_back(yStart);</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;      vertices.push_back(0);</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    }</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;  }</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;}<div class="ttc" id="class_checkerboard_html_a54f669fe23e7a224b7022b6f169b7d77"><div class="ttname"><a href="../../df/d89/class_checkerboard.html#a54f669fe23e7a224b7022b6f169b7d77">Checkerboard::_lightColor</a></div><div class="ttdeci">const float * _lightColor</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/ddf/_checkerboard_8h_source.html#l00041">Checkerboard.h:41</a></div></div>
<div class="ttc" id="class_checkerboard_html_a7823063192a67cfefb42768be85edc47"><div class="ttname"><a href="../../df/d89/class_checkerboard.html#a7823063192a67cfefb42768be85edc47">Checkerboard::_squares</a></div><div class="ttdeci">size_t _squares[2]</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/ddf/_checkerboard_8h_source.html#l00043">Checkerboard.h:43</a></div></div>
<div class="ttc" id="class_checkerboard_html_a3a292edf6a6a1ee402a3af1761be44b2"><div class="ttname"><a href="../../df/d89/class_checkerboard.html#a3a292edf6a6a1ee402a3af1761be44b2">Checkerboard::_size</a></div><div class="ttdeci">float _size[2]</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/ddf/_checkerboard_8h_source.html#l00042">Checkerboard.h:42</a></div></div>
<div class="ttc" id="class_checkerboard_html_ae17c6a79ea4e466a1e360488cc174010"><div class="ttname"><a href="../../df/d89/class_checkerboard.html#ae17c6a79ea4e466a1e360488cc174010">Checkerboard::_darkColor</a></div><div class="ttdeci">const float * _darkColor</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/ddf/_checkerboard_8h_source.html#l00040">Checkerboard.h:40</a></div></div>
</div><!-- fragment -->
<p><div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="../../closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../df/d89/class_checkerboard_a7da009b6e556e016815920ee968efa98_icgraph.png" border="0" usemap="#df/d89/class_checkerboard_a7da009b6e556e016815920ee968efa98_icgraph" alt=""/></div>
<map name="df/d89/class_checkerboard_a7da009b6e556e016815920ee968efa98_icgraph" id="df/d89/class_checkerboard_a7da009b6e556e016815920ee968efa98_icgraph">
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ac2684bd81769c83fbf0bf2f648a35488"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const float* Checkerboard::getSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Get an array of x,y size (in the plane's coordinates, meters) </p>

<p>Definition at line <a class="el" href="../../dd/ddf/_checkerboard_8h_source.html#l00034">34</a> of file <a class="el" href="../../dd/ddf/_checkerboard_8h_source.html">Checkerboard.h</a>.</p>

<p>References <a class="el" href="../../dd/ddf/_checkerboard_8h_source.html#l00042">_size</a>, and <a class="el" href="../../d3/dfd/_checkerboard_8cpp_source.html#l00029">computeVertices()</a>.</p>
<div class="fragment"><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;{ <span class="keywordflow">return</span> <a class="code" href="../../df/d89/class_checkerboard.html#a3a292edf6a6a1ee402a3af1761be44b2">_size</a>; }</div><div class="ttc" id="class_checkerboard_html_a3a292edf6a6a1ee402a3af1761be44b2"><div class="ttname"><a href="../../df/d89/class_checkerboard.html#a3a292edf6a6a1ee402a3af1761be44b2">Checkerboard::_size</a></div><div class="ttdeci">float _size[2]</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/ddf/_checkerboard_8h_source.html#l00042">Checkerboard.h:42</a></div></div>
</div><!-- fragment -->
<p><div id="dynsection-2" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-2-trigger" src="../../closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-2-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-2-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../df/d89/class_checkerboard_ac2684bd81769c83fbf0bf2f648a35488_cgraph.png" border="0" usemap="#df/d89/class_checkerboard_ac2684bd81769c83fbf0bf2f648a35488_cgraph" alt=""/></div>
<map name="df/d89/class_checkerboard_ac2684bd81769c83fbf0bf2f648a35488_cgraph" id="df/d89/class_checkerboard_ac2684bd81769c83fbf0bf2f648a35488_cgraph">
</map>
</div>
</p>

<p><div id="dynsection-3" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-3-trigger" src="../../closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-3-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-3-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../df/d89/class_checkerboard_ac2684bd81769c83fbf0bf2f648a35488_icgraph.png" border="0" usemap="#df/d89/class_checkerboard_ac2684bd81769c83fbf0bf2f648a35488_icgraph" alt=""/></div>
<map name="df/d89/class_checkerboard_ac2684bd81769c83fbf0bf2f648a35488_icgraph" id="df/d89/class_checkerboard_ac2684bd81769c83fbf0bf2f648a35488_icgraph">
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a19e69d5da151a709563281080c511ec8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Checkerboard::setDarkColor </td>
          <td>(</td>
          <td class="paramtype">const float *&#160;</td>
          <td class="paramname"><em>dark</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Set the color of the dark squares Do this before computeVertices </p>

<p>Definition at line <a class="el" href="../../dd/ddf/_checkerboard_8h_source.html#l00023">23</a> of file <a class="el" href="../../dd/ddf/_checkerboard_8h_source.html">Checkerboard.h</a>.</p>

<p>References <a class="el" href="../../dd/ddf/_checkerboard_8h_source.html#l00040">_darkColor</a>.</p>
<div class="fragment"><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;{ <a class="code" href="../../df/d89/class_checkerboard.html#ae17c6a79ea4e466a1e360488cc174010">_darkColor</a> = dark; }</div><div class="ttc" id="class_checkerboard_html_ae17c6a79ea4e466a1e360488cc174010"><div class="ttname"><a href="../../df/d89/class_checkerboard.html#ae17c6a79ea4e466a1e360488cc174010">Checkerboard::_darkColor</a></div><div class="ttdeci">const float * _darkColor</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/ddf/_checkerboard_8h_source.html#l00040">Checkerboard.h:40</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="aaf41dba79db5375bac69734a0b06ba9e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Checkerboard::setLightColor </td>
          <td>(</td>
          <td class="paramtype">const float *&#160;</td>
          <td class="paramname"><em>light</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Set the color of the light squares Do this before computeVertices </p>

<p>Definition at line <a class="el" href="../../dd/ddf/_checkerboard_8h_source.html#l00029">29</a> of file <a class="el" href="../../dd/ddf/_checkerboard_8h_source.html">Checkerboard.h</a>.</p>

<p>References <a class="el" href="../../dd/ddf/_checkerboard_8h_source.html#l00041">_lightColor</a>.</p>
<div class="fragment"><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;{ <a class="code" href="../../df/d89/class_checkerboard.html#a54f669fe23e7a224b7022b6f169b7d77">_lightColor</a> = light; }</div><div class="ttc" id="class_checkerboard_html_a54f669fe23e7a224b7022b6f169b7d77"><div class="ttname"><a href="../../df/d89/class_checkerboard.html#a54f669fe23e7a224b7022b6f169b7d77">Checkerboard::_lightColor</a></div><div class="ttdeci">const float * _lightColor</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/ddf/_checkerboard_8h_source.html#l00041">Checkerboard.h:41</a></div></div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="ae17c6a79ea4e466a1e360488cc174010"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const float* Checkerboard::_darkColor = <a class="el" href="../../dc/daa/_colors_8h.html#a5455a636720a913de6ab033eae5e0746">checkerboardDark</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="../../dd/ddf/_checkerboard_8h_source.html#l00040">40</a> of file <a class="el" href="../../dd/ddf/_checkerboard_8h_source.html">Checkerboard.h</a>.</p>

</div>
</div>
<a class="anchor" id="a54f669fe23e7a224b7022b6f169b7d77"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const float* Checkerboard::_lightColor = <a class="el" href="../../dc/daa/_colors_8h.html#a8450fe3cef6bee0f0ca51bff464853b7">checkerboardLight</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="../../dd/ddf/_checkerboard_8h_source.html#l00041">41</a> of file <a class="el" href="../../dd/ddf/_checkerboard_8h_source.html">Checkerboard.h</a>.</p>

</div>
</div>
<a class="anchor" id="a3a292edf6a6a1ee402a3af1761be44b2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">float Checkerboard::_size[2]</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="../../dd/ddf/_checkerboard_8h_source.html#l00042">42</a> of file <a class="el" href="../../dd/ddf/_checkerboard_8h_source.html">Checkerboard.h</a>.</p>

</div>
</div>
<a class="anchor" id="a7823063192a67cfefb42768be85edc47"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">size_t Checkerboard::_squares[2]</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="../../dd/ddf/_checkerboard_8h_source.html#l00043">43</a> of file <a class="el" href="../../dd/ddf/_checkerboard_8h_source.html">Checkerboard.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="../../dd/ddf/_checkerboard_8h_source.html">Checkerboard.h</a></li>
<li><a class="el" href="../../d3/dfd/_checkerboard_8cpp_source.html">Checkerboard.cpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../df/d89/class_checkerboard.html">Checkerboard</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
